class Country < ActiveRecord::Base
  has_many :ecases ,:dependent => :destroy
  validates_presence_of :name
  validates_format_of :image_url, 
    :with => %r{\.(gif|jpg|png|swf)$}i,
    :message => "Must be a URL for a GIF, JPG, PNG or SWF file"
  file_column :image_url, :magick => { :geometry => "100x80!" }
end
